package phone.qyg.com.qyg.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 作者：lblbh on 2017/12/14 10:07
 * 邮箱：lanbuhan@163.com
 * 功能：我的场馆列表
 */

public class MyVenue implements Parcelable {


    /**
     “id”:1 //订单id
     “orderCode”:”12365ju”//订单编号
     "roomId":3,        //活动室id
     “roomName”:”一楼活动室”,   //活动室名称
     "venueId":3,        //场馆id
     “venueName”:”一楼活动室”,   //场馆名称
     “status”:1  //活动状态值
     “statusName”:”预约中”    //活动状态名称
     “color”:”#000000”  //活动状态颜色
     “orderDate”’2017-11-18 14:00’     //提交时间
     “isSign”:0//是否可取消 0可以 1不可以
     “fixImgUrl”:”http://domain:port/data/2017/04/13/223.jpg” //缩略图

     */

    public int id;
    public int roomId;
    public int venueId;
    public int status;
    public int isSign;
    public int isClick;
    public String color;
    public String roomName;
    public String venueName;
    public String orderCode;
    public String orderDate;
    public String fixImgUrl;
    public String statusName;

    public MyVenue() {}


    @SuppressWarnings("unchecked")
    public MyVenue(Parcel in) {
        id = in.readInt();
        roomId = in.readInt();
        venueId = in.readInt();
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeInt(roomId);
        dest.writeInt(venueId);
    }


    public static final Creator<MyVenue> CREATOR = new Creator<MyVenue>() {
        @Override
        public MyVenue[] newArray(int size) {
            return new MyVenue[size];
        }

        @Override
        public MyVenue createFromParcel(Parcel in) {
            return new MyVenue(in);
        }
    };

}
